//*************************************************//
//**                                             **//
//*************************************************//
#ifndef __test_tool_offset__
#define __test_tool_offset__
if(token.Matches(_("test_tool_offset"))&&(T.GetCount()==3))
{
    IsNotExtFunc = false;

    int ZI = int(calc(T[0]));
    int DI = int(calc(T[1]));
    double y = calc(T[2]);

    if(DI<0)DI=0;
    if(DI>=numImages)DI=numImages-1;

    double x = GetToolOffset(y, &I[startToolPos+tNum] , &I[ZI]  );

    I[DI].Clear();
    I[ZI].Copy(&I[DI],mP(0,0));
    I[startToolPos+tNum].Copy(&I[DI],mP(x,y));

    iNum=DI;
    CODE << wxString::Format( _("(TEST_TOOL_OFFSET X=%f)\n"),x);

    continue;
}
#else
INFO << _("test_tool_offset(ZImage,OImageY,Z)<BR>");
if(token.Matches(_("tool_tool_offset(*,*,*)")))
{
    INFO = _("<b>test_tool_offset</b>(Z image,out Image,Y)<BR><BR>");
    INFO << _("Z = Z image<BR>");
    INFO << _("O = Where to draw<BR>");
    INFO << _("Y = Tool altitude<BR>");
    INFO << _("<BR>");
    INFO << _("<b>description:</b><BR>");
    INFO << _("Tool hit<BR>");
    INFO << _("<BR>");
    return true;
}
#endif

